package com.haredot.controller;

import com.haredot.result.R;
import com.haredot.service.OrderService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/manager")
public class ManagerController {

    @Resource
    private OrderService orderService ;


    @PostMapping("/confirm")
    public R<?> confirmOrder(@RequestParam("cid") Long cid) {
        return orderService.confirmOrder(cid);
    }
}
